Package com. jeovanimartinez. androidutils. extensions. context
Functions
Link copied to clipboard
Link copied to clipboard
Get a Drawable from the resources based on their ID using AppCompatResources.getDrawable()
Link copied to clipboard
Get a font from the resources based on their ID using ResourcesCompat.getFont()
Link copied to clipboard
fun Context.typeAsDrawable(@DrawableOrDrawableRes drawableOrDrawableRes: Any?): Drawable?
Content copied to clipboard
Parses the received data type drawableOrDrawableRes and always returns a Drawable.
Link copied to clipboard
fun Context.typeAsString(@StringOrStringRes stringOrStringRes: Any): String
Content copied to clipboard
Parses the received data type stringOrStringRes and always returns a String.